package com.achao.basecommon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.sql.Blob;

/**
 * 描述：后台管理-用户表-DO类
 *
 * @Author：yangchao
 * @CreateDate：2023/1/31 22:06
 */
@TableName("MUSIC_USER")
public class MusicUserDO implements Serializable {

    private static final long serialVersionUID = 9100917007159868338L;
    //用户表排序id
    @TableId("ID")
    private int id;
    //用户名
    @TableField("USER_NAME")
    private String userName;
    //手机号码
    @TableField("PHONE_NO")
    private String phoneNo;
    //用户邮箱
    @TableField("EMAIL")
    private String email;
    //用户生日
    @TableField("BIRTHDAY")
    private String birthday;
    //用户归属地区
    @TableField("AREA")
    private String area;
    //用户收藏夹ID,对应music_collect表ID
    @TableField("FAVORITES_ID")
    private int favoritesId;
    //创建时间
    @TableField("CREATE_TIME")
    private String createTime;
    //| 用户头像 |
    @TableField("HEAD_PICTURE")
    private Blob headPicture;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public int getFavoritesId() {
        return favoritesId;
    }

    public void setFavoritesId(int favoritesId) {
        this.favoritesId = favoritesId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Blob getHeadPicture() {
        return headPicture;
    }

    public void setHeadPicture(Blob headPicture) {
        this.headPicture = headPicture;
    }

    @Override
    public String toString() {
        return "MusicUserDO{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", phoneNo='" + phoneNo + '\'' +
                ", email='" + email + '\'' +
                ", birthday='" + birthday + '\'' +
                ", area='" + area + '\'' +
                ", favoritesId=" + favoritesId +
                ", createTime='" + createTime + '\'' +
                ", headPicture=" + headPicture +
                '}';
    }
}
